package cn.ly.security.dao;

import cn.ly.security.entity.Role;
import cn.ly.security.entity.User;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;
import org.springframework.stereotype.Repository;

import java.util.List;
import java.util.Map;

@Repository
@Mapper
public interface UserMapper extends BaseMapper<User> {

    List<User> selectUserList(@Param("first") Integer first, @Param("last") Integer last);
    List<User> selectUserListById(@Param("uId") Integer id, @Param("first") Integer first, @Param("last") Integer last);
    List<User> selectUserListByName(@Param("uUsername") String uUsername, @Param("first") Integer first, @Param("last") Integer last);
    User login(@Param("uUsername") String uUsername, @Param("uPassword") String uPassword);
    String selectPath(@Param("uId") Integer id);
    User registcheck(User user);
}